<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getprintorderUrl="{:U('Outbound/get_printorder')}";
	var printbatUrl="{:U('Outbound/printbat_iframe')}";//打印百世面单链接
	var printbatSFUrl="{:U('Outbound/printbatSF_iframe')}";//打印顺丰面单链接
	
	var get_picklist="{:U('Outbound/get_picklist')}";//波次单号
	
	var ajax_printbatSFUrl="{:U('Outbound/ajax_printbatSF')}";//预览/立即打印
	var ajax_printbatBSUrl="{:U('Outbound/ajax_printbatBS')}";//预览/立即打印
	var ajax_printbatZTOUrl="{:U('Outbound/ajax_printbatZTO')}";//预览/立即打印
	var ajax_printbatBSEUrl="{:U('Outbound/ajax_printbatBSE')}";//预览/立即打印
	var ajax_printbatYTUrl="{:U('Outbound/ajax_printbatYT')}";//预览/立即打印
	var ajax_printbatSTUrl="{:U('Outbound/ajax_printbatST')}";//预览/立即打印
	
	var weighturl_green="{:U('ScanOrder/weighting',array('green'=>1))}";//称重-绿色通道
	
	
	<!-- using('../../../default/js/printorder.js'); -->
	var LODOP;
	function getStatusValue(ValueType,ValueIndex,oResultOB){
		LODOP=getLodop(); 
		if (LODOP.CVERSION) LODOP.On_Return=function(TaskID,Value){oResultOB.value=Value;};
		var strResult=LODOP.GET_VALUE(ValueType,ValueIndex);
		if (!LODOP.CVERSION) return strResult; else return "";
	};
</script>
	<script type="text/javascript" src="__PUBLIC__/default/js/printorder.js?v=4"></script>
	<table id="printorderDatagrid" toolbar="#printorder_tb"></table>
    <!-- 搜索栏 -->
    <div id="printorder_tb">
        <form id="printorderSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="printorderObj.showAll()">全部</a>
			 <input type="hidden" value="" name="first_orderid" id="first_orderid"> 			 
			 订单编号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			 商户名称:<input class="easyui-textbox" name="company_name" style="width:150px;height:30px;">
			 电子面单号:<input class="easyui-textbox" name="mailNo" style="width:150px;height:30px;"> 
			 收件人姓名:<input class="easyui-textbox" name="receiveMan" style="width:150px;height:30px;"> 
			  时间: <input class="easyui-datetimebox" name="start_time" value="{:date('Y-m-1 H:i:s',time())}" style="height:30px;width:150px;">
				- <input class="easyui-datetimebox" name="end_time" value="{:date('Y-m-d H:i:s',time())}" style="height:30px;width:150px;">
			 <select class="easyui-combobox" name="print_status" id="print_status" style="width:75px;height:30px;" >
				 <option value="0">打印状态</option>
                 <option value="1">未打印</option>
				 <option value="2">已打印</option>
             </select>
			 <select class="easyui-combobox" name="pick_status" id="pick_status" style="width:75px;height:30px;" >
				 <option value="0">制单状态</option>
                 <option value="1">已制单</option>
				 <option value="2">未制单</option>
             </select>
			 <select class="easyui-combobox" name="is_delivery" id="is_delivery" style="width:75px;height:30px;" >
				 <option value="0">出库状态</option>
                 <option value="1">已出库</option>
				 <option value="2">未出库</option>
             </select>
			 <select class="easyui-combobox" name="logiscompany_name" id="logiscompany_name" style="width:75px;height:30px;" >
				 <option value="0">快递公司</option>
				 <option value="圆通">圆通</option>
                 <option value="百世">百世</option>
				 <option value="中通">中通</option>
				 <option value="顺丰">顺丰</option>
				 <option value="申通">申通</option>
             </select>
			 <a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
			 <a href="#" class="AdvanceSearch" style="height:30px;">更多条件</a>
			 <br>
			 <div id="printAdvanceSearch" style="float:left;margin:5px 0 0 58px;width:100%;display:none;">
				商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;">
				商品数量:<input class="easyui-textbox" name="nums" style="width:50px;height:30px;"> 
				匹配规则: 
				<select class="easyui-combobox" name="check_cate" style="width:200px;height:30px;">
					<option value="0">未选择</option>
					<option value="1">完全匹配（商品唯一并匹配商品数量）</option>
					<option value="5">商品唯一但不匹配此商品数量</option>
					<option value="2">包含此商品并且匹配此商品数量</option>
					<option value="3">包含此商品但不匹配此商品数量</option>
					<option value="4">不包含此商品</option>
				</select>
			</div>
        </form>
		<a href="javascript:void(0)" onclick="printorderObj.printBarBS(1)" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览百世COD面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarBSE()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览百世英文面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarZTO()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览中通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarBS()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览百世面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarSF()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览顺丰面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarYT()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览圆通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.printBarST()" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true">预览申通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintBS(1)" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印百世COD面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintBSE()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印百世英文面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintZTO()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印中通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintBS()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印百世面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprint()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印顺丰面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintYT()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印圆通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.goprintST()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">批量打印申通面单</a>
		<a href="javascript:void(0)" onclick="printorderObj.excelBar()" class="easyui-linkbutton" data-options="iconCls:'icon-page_excel',plain:true">导出EXCEL</a>
		<a href="javascript:void(0)" onclick="printorderObj.showAdvanceBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">显示隐藏信息</a>
		<a href="javascript:void(0)" onclick="printorderObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
		<a href="javascript:void(0)" onclick="printorderObj.weightBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">称重</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 编辑 -->
    <div id="booksInfoEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#booksInfoEditButtons"  modal="true">
        <form id="booksInfoEditForm" method="post" novalidate>    
            <input name="id"  type="hidden" />
			<div class="fitem">
                <label>电子面单号</label>
                <input name="logistics_no" type="text"  class="easyui-textbox" data-options="height:30" style="background:#ccc;" />
            </div>
			<div class="fitem">
                <label>标签(多条数据用逗号隔开)</label>
                <input name="mark_mailno" type="text"  class="easyui-textbox" data-options="height:30" style="background:#ccc;" />
            </div>
        </form>
    </div>
    <div id="booksInfoEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="printorderObj.save('{:U('Outbound/pushorderSave')}')" style="width:90px">修改</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#booksInfoEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
</body>